<div class="bjui-pageHeader">
    <div class="glyphicon glyphicon-th-large">{$type}</div>
        <button type="button" class=" btn-default" data-icon="remove" data-confirm-msg="确实要删除选择项吗？" data-toggle="doajax" data-url="{:U('Member/commentDel')}?id={#bjui-selected}&batchFlag=1">删除</button>
</div>

<div class="bjui-pageContent">


    <form action="{:U('Model/sort')}" data-toggle="validate">
        <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="true">
            <thead>
            <tr>
                <th>编号</th>
                <th>文章标题</th>
                <th>评论人</th>
                <th>评论时间</th>
                <th>I P</th>
                <th>是否审核</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name='vlist' item='v'>
            <tr data-id="{$v.id}">
                <td>{$v.id}</td>
                <?php
                    $url=getContentUrl($v['postid'],$v['cid'],$v['ename']);
                    $url=C('cfg_weburl').str_replace('/'.C('cfg_hou_tai'), '', $url);
                ?>
                <td><a href="{$url}" target="_blank">{$v.title|str2sub=36,'...'}</a></td>
                <td>{$v.username}</td>
                <td>{$v.posttime|date='Y-m-d H:i:s',###}</td>
                <td>{$v.ip}</td>
                <td>{$v['status']?'否':'是'}</td>
                
                <td>
                <a href="{:U('Member/lookComment',array('id' => $v['id']))}" data-toggle="dialog" data-id="edit-member" data-title="查看评论" data-width="560" data-height="400">查看</a>
                <a href="{:U('Member/commentDel',array('id' => $v['id']))}" data-toggle="doajax" data-confirm-msg="确定要删除吗？" data-type="get">删除</a>
                
                </td>
            </tr>
            </tbody>
            </foreach>
        </table>
    </form>

</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>

        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="15">15</option>
                <option value="30">30</option>
                <option value="60">60</option>
                <option value="100">100</option>
            </select>
        </div>
        <span>&nbsp;条，共 {$totalRows} 条</span>
    </div>
    <div class="pagination-box" data-toggle="pagination" data-total="{$totalRows}" data-page-size="15"
         data-page-current="{$nowPage}"></div>
</div>